package ai.esc.speedy.admin.user.infrastructure.jwt;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Rubin
 * @version v1 2020/3/24 11:53
 */
@Data
@ConfigurationProperties(prefix = "token")
public class JwtProperties {
    /**
     * token过期时间，单位分钟
     */
    private Integer tokenExpireTime;

    /**
     * 刷新Token过期时间，单位分钟
     */
    private Integer refreshTokenExpireTime;

    /**
     * Shiro缓存有效期，单位分钟
     */
    private Integer shiroCacheExpireTime;

    /**
     * token加密密钥
     */
    private String secretKey;
}